package com.xbongbong.pro.webdetail.pojo;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;

/**
 * 跟进记录详情左侧
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/2/14 21:51
 * @since v1.0
 */
@Getter
@Setter
public class CommunicateLeftDetailPojo {
    /**
     * 跟进记录id
     */
    private Long id;
    /**
     * 地址
     */
    private String address;
    /**
     * 跟进时间
     */
    private String communicateTime;
    /**
     * 图片
     */
    private JSONArray images;
    /**
     * 备注
     */
    private String memo;
    /**
     * 跟进方式
     */
    private String type;
    /**
     * 员工头像
     */
    private Object userAvatar;
    /**
     * 员工id
     */
    private String userId;
    /**
     * 员工名称
     */
    private String userName;
    /**
     * 评论总数
     */
    private Integer commentCount;
    /**
     * 是否点赞
     */
    private Integer ifLike;
    /**
     * 点赞总数
     */
    private Integer likeCount;
    /**
     * （供应商）联系人
     */
    private JSONArray contact;
    /**
     * 主业务名称（客户名称，供应商名称）
     */
    private String mainBusinessName;

    /**
     * 跟进业务名(机会或合同)
     */
    private String communicateBusinessName;

    public CommunicateLeftDetailPojo() {
        this.address = "";
        this.memo = "";
        this.images = new JSONArray();
        this.ifLike = 0;
        this.commentCount = 0;
        this.likeCount = 0;
        this.contact = new JSONArray();
        this.communicateBusinessName = "";
        this.mainBusinessName = "";
    }

    public void setAddress(String address) {
        if (address == null){
            return;
        }
        this.address = address;
    }

    public void setImages(JSONArray images) {
        if (images == null){
            return;
        }
        this.images = images;
    }

    public void setMemo(String memo) {
        if (memo == null){
            return;
        }
        this.memo = memo;
    }

    public void setContact(JSONArray contact) {
        if (contact == null){
            return;
        }
        this.contact = contact;
    }

    public void setUserAvatar(Object userAvatar) {
        if (userAvatar == null){
            return;
        }
        this.userAvatar = userAvatar;
    }

    public void setCommunicateBusinessName(String communicateBusinessName) {
        if (communicateBusinessName == null){
            return;
        }
        this.communicateBusinessName = communicateBusinessName;
    }
}
